<template>
  <p>这是详情页</p>
</template>

<script>
export default {
    data() {
        return {}
    },
    beforeRouteEnter(to, from, next) {
        console.log(from, '准备进入页面');
        next()
        // console.log(to);
    },
    beforeRouteLeave(to, from, next) {
        console.log(to, '准备离开');
        next()
    }
}
</script>

<style>

</style>